package com.ophiux.service.impl;

import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Service;

@Service
public class MyServiceTask {
    public void hasRole(DelegateExecution delegateExecution){
        Integer day = Integer.parseInt(delegateExecution.getVariable("day").toString());
        if(day > 3){
            delegateExecution.setVariable("type",1);
        }else{
            delegateExecution.setVariable("type",0);
        }
    }
}
